package com.server.questionbank.snframe.mapper.Note;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.server.questionbank.snframe.domain.Note.UserAttachment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Mapper
public interface UserAttachmentMapper extends BaseMapper<UserAttachment> {
    @Select("SELECT * FROM user_attachments WHERE user_id = #{userId} ORDER BY attachment_order ASC")
    List<UserAttachment> findByUserId(@Param("userId") Long userId);
} 